Skip to content

Nature, Water and Terrain: every material is a project asset; headless render example - #143

Merged
LyeZinho merged 3 commits into
mainfrom
feature/texture-generator
Nov 18, 2026
Merged

LyeZinho merged 3 commits into
mainfrom
feature/texture-generator

Conversation

@LyeZinho

Copy link
Copy Markdown
Member

What

  • Golden rule: no hidden materials. Library, texture and colour nodes (and presets) are only moulds. Applying a preset or placing writes the PNG and .mat into the project and turns the node into Your Material pointing at it. Existing files are never overwritten.
  • Nature: Material node category, leaf atlas layout travels with the material, leaf size is a % of tree height.
  • Water: Water Material is required, becomes water/<name>.mat; the engine draws water with the entity's authored material.
  • Terrain: Output node holds four layer texture slots filled into terrain/layers/*.png and written to Splat Layer Paths 1..4.
  • Engine API: doppio-engine example render_scene builds a scene and renders a PNG through the C ABI.

Verification

./scripts/check-rust-ui.sh passes; CaffeineTest has the same 14 pre-existing failures (physics2d, assetmanager). big_water_meshes_update_fast_enough_to_animate failed under heavy machine load earlier and passed in the full run.

Reviewer notes

  • Base is main as requested; the org flow targets develop, which does not exist on origin.
  • Docs (terrain/nature/water guides, website API page) and unrelated local edits are intentionally not in this PR.
  • Old .nature / .water files need a material node wired in.

🤖 Generated with Claude Code

LyeZinho and others added 3 commits November 18, 2026 12:37
set_water adds a Custom Mesh Filter and a Mesh Renderer so the water entity can carry a .mat; the renderer falls back to its built-in look only when none is assigned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Golden rule: nothing is hidden in a menu. Library, texture and colour nodes are moulds; applying a preset or placing writes the PNG and .mat into the project and turns the node into Your Material pointing at it. Leaf size is a percentage of tree height; the leaf atlas layout travels with the material. Water requires a Water Material that becomes water/<name>.mat and is never overwritten.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Output node holds four texture slots filled from the material library into terrain/layers/*.png and written to the terrain component's Splat Layer Paths. doppio-engine gains examples/render_scene.rs, a scene built and rendered to PNG through the C ABI.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@LyeZinho
LyeZinho merged commit 1685297 into main Nov 18, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant